package cn.tianyigps.tianyigpsgatherchecker.service;

import cn.tianyigps.tianyigpsgatherchecker.bean.EquipmentCheckModel;
import cn.tianyigps.tianyigpsgatherchecker.dao.EquipmentCheckModelDao;
import com.mongodb.client.result.UpdateResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class EquipmentCheckModelService {
    @Autowired
    EquipmentCheckModelDao equipmentCheckModelDao;
    public EquipmentCheckModel getEquipmentCheckModelById(String equipmentId) {

        return equipmentCheckModelDao.getEquipmentCheckModelById(equipmentId);
    }
    public List<EquipmentCheckModel> getGather(Map<String, String> param) {
        return equipmentCheckModelDao.getGather(param);
    }
    public UpdateResult updateCheckStatus(String equipmentId, List<String> checkRuleList, String fieldName) {
        return equipmentCheckModelDao.updateCheckStatus(equipmentId, checkRuleList, fieldName);
    }
}
